package com.solution.admin.customer.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.solution.admin.customer.dao.CustomerVisitLogDao;
import com.solution.admin.customer.entity.CustomerVisitLogEntity;
import com.solution.common.dao.impl.BaseDaoImpl;
import com.solution.common.page.PageBean;
import com.solution.common.page.PageParam;

/**
 * 客户访问内容DAO实现
 * @author lilp
 * @date 2018-07-07 09:26:31
 */
@Repository
public class CustomerVisitLogDaoImpl extends BaseDaoImpl<CustomerVisitLogEntity> implements CustomerVisitLogDao {

	/**
	 * 保存客户访问内容信息
	 * @param customerVisitLogEntity
	 * @return
	 * @author lilp
	 * @date 2018-07-07 09:26:31
	 */
	@Override
	public long saveCustomerVisitLog(CustomerVisitLogEntity customerVisitLogEntity) {
		return super.insert(customerVisitLogEntity);
	}

	/**
	 * 分页查询客户访问内容信息
	 * @param pageParam 分页对象
	 * @param customerVisitLog 分页参数
	 * @return PageBean 分页参数及数据
	 * @author lilp
	 * @date 2018-07-07 09:26:31
	 */
	public PageBean listCustomerVisitLogPage(PageParam pageParam, Map<String, Object> param) {
		return super.listPage(pageParam, param);
	}

	/**
	 * 更新客户访问内容
	 * @param customerVisitLogEntity
	 * @return
	 * @author lilp
	 * @date 2018-07-07 09:26:31
	 */
	@Override
	public int updateCustomerVisitLog(CustomerVisitLogEntity customerVisitLogEntity) {
		return super.update(customerVisitLogEntity);
	}

	/**
	 * 删除客户访问内容
	 * @param customerVisitLogId
	 * @return
	 * @author lilp
	 * @date 2018-07-07 09:26:31
	 */
	public int deleteCustomerVisitLogById( Long id) {
		return super.deleteById(id);
	}
	
	/**
	 * 根据条件查询客户访问内容
	 * @param param
	 * @return
	 * @author lilp
	 * @date 2018-07-07 09:26:31
	 */
	@Override
	public List<CustomerVisitLogEntity> listCustomerVisitLog( Map<String, Object> param) {
		return super.listBy(param);
	}
}
